﻿namespace IntellectShop.Common
{
	using System;
	using System.ComponentModel.DataAnnotations;

	public partial class News
	{
		[ScaffoldColumn(false)]
		public int NewsID { get; set; }

		[DisplayNameLocalized("SortingID")]
		public int SortingID { get; set; }

		[DisplayNameLocalized("Header")]
		[Required(ErrorMessage = "Header is required")]
		public string Header { get; set; }

		public string HeaderPrint
		{
			get { return ConvertUtils.RemoveSpecialChars(this.Header); }
		}

		[DisplayNameLocalized("Body")]
		[Required(ErrorMessage = "Body is required")]
		public string Body { get; set; }

		public string BodyPrint
		{
			get { return ConvertUtils.RemoveSpecialChars(this.Body); }
		}

		[DisplayNameLocalized("CreatedBy")]
		public string CreatedBy { get; set; }

		[DisplayNameLocalized("Created")]
		public DateTime? Created { get; set; }
	}
}
